package com.heima.behavior.service.impl;

import com.heima.behavior.service.BehaviorService;
import com.heima.model.behavior.dtos.BehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class BehaviorServiceImpl implements BehaviorService {

    /**
     * 文章点赞
     * @param dto
     * @return
     */
    @Override
    public ResponseResult like(BehaviorDto dto) {

        //TODO: Redis存储文章点赞数据

        return ResponseResult.okResult(200, "文章点赞");
    }

    /**
     * 文章阅读
     * @param dto
     * @return
     */
    @Override
    public ResponseResult read(BehaviorDto dto) {

        //TODO: Redis存储文章阅读数据

        return ResponseResult.okResult(200, "文章阅读");
    }

    /**
     * 文章不喜欢
     * @return
     */
    @Override
    public ResponseResult unLike(BehaviorDto dto) {

        //TODO: Redis存储文章不喜欢数据

        return ResponseResult.okResult(200, "文章不喜欢");
    }
}
